package com.bhp.vblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName User
 * @Description TODO
 * @Author 包海鹏
 * @Date 2020/4/2 16:35
 * @Version 1.0
 **/
@Data
@TableName("user")
public class User {

    /**
     * 自增ID
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "username")
    private String username;

    @TableField(value = "nickname")
    private String nickname;

    @TableField(value = "password")
    private String password;

    @TableField(value = "enabled")
    private Integer enabled;

    @TableField(value = "email")
    private String email;

    @TableField(value = "userface")
    private String userface;

    @TableField(value = "regTime")
    private Date regTime;

}
